Repository navigation
Deploy every merge to main automatically (server and iPhone app) - #3
Conversation
Published from the private repository by oss-sync. - Deploy every merge to main automatically (server and iPhone app) 2 files changed, 222 insertions(+)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68d9c4fc01
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| run: | | ||
| sleep 2 | ||
| for i in $(seq 1 60); do | ||
| if curl -fsS --max-time 2 "$DEPLOY_HEALTH_URL" > /dev/null; then echo "Up after ${i}s"; exit 0; fi |
There was a problem hiding this comment.
Authenticate the default health check
On every normal session-authenticated install, the default unauthenticated curl receives 401 from /api/health, because only the static public files bypass the auth gate. Consequently every otherwise-successful deploy waits a minute and rolls back; either use an authenticated request or expose a dedicated public liveness endpoint.
AGENTS.md reference: AGENTS.md:L133-L135
Useful? React with 👍 / 👎.
| git fetch --quiet origin main | ||
| git merge --ff-only --quiet origin/main |
There was a problem hiding this comment.
Deploy only the SHA whose CI run succeeded
When commit B is pushed while the successful CI run for commit A is completing, this fetch and merge advances the live checkout to the current origin/main, including B even if B's CI is still running or later fails. The workflow_run path should deploy github.event.workflow_run.head_sha rather than the moving branch tip; manual dispatch can continue to use the current tip.
Useful? React with 👍 / 👎.
| if [ "$live" = 0 ]; then echo "build=true" >> "$GITHUB_OUTPUT"; echo "Native code changed: no build has runtime $rv yet."; else echo "A build has runtime $rv."; fi | ||
|
|
||
| - name: Publish the update | ||
| run: npx eas-cli update --channel production --platform ios --non-interactive --message "$(git log -1 --format=%s)" |
There was a problem hiding this comment.
Pass the required environment to EAS Update
This project uses Expo SDK 57, for which the --environment flag is required by eas update; therefore every mobile deployment fails at this step before publishing the OTA update or starting the subsequent App Store build. Add --environment production to match the production channel and build profile, as required by Expo's EAS Update documentation.
Useful? React with 👍 / 👎.
Published from the private repository by oss-sync.
2 files changed, 222 insertions(+)